using System.Collections.Generic;

namespace Engine.FileFormats3D.WR2TrafficFiles
{
    public class SplineDataFileBlock
    {
        #region Private Fields

        private List<SplineData> splineData = new List<SplineData>();

        #endregion Private Fields

        #region Public Methods

        public void AddSplineData(int id, byte value1, byte value2, byte value3, byte value4)
        {
            this.splineData.Add(new SplineData(id, value1, value2, value3, value4));
        }

        public short Count()
        {
            return (short)splineData.Count;
        }

        public void Save(System.IO.BinaryWriter bw)
        {
            foreach (SplineData sd in this.splineData)
            {
                sd.Save(bw);
            }
        }

        #endregion Public Methods
    }
}